'''
Author: duliang thinktanker@163.com
Date: 2025-07-20 16:47:00
LastEditors: duliang thinktanker@163.com
LastEditTime: 2025-07-20 20:20:33
FilePath: \dining-group\w.py
Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE
'''
import requests
import re

resp = requests.get(
    "https://www.rili.com.cn/fangjiaanpai/",
    headers={
        "User-Agent":
        "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/138.0.0.0 Safari/537.36 Edg/138.0.0.0"
    },
    verify=False)

result = re.findall(
    r'<td class="td1"><a href.*?>(.*?)</a></td><td class="td2">(.*?)</td>',
    resp.text)

print(result)
